<?php
declare(strict_types=1);

namespace App\Resource\Activity\LaborDay2023;


use Illuminate\Http\Resources\Json\JsonResource;

class Resource extends JsonResource
{
    public function toArray($request): array
    {
        return [
            "id" => $this->id,
            "user_id" => $this->user_id,
            "balance" => $this->balance,
            "exp" => $this->exp,
            "diff_exp" => $this->diff_exp,
            "current_level" => LevelResource::make($this->current_level),
            "next_level" => LevelResource::make($this->next_level),
        ];
    }
}